package cn.tedu.medicalappointmentsystemk.service;

import cn.tedu.medicalappointmentsystemk.pojo.bo.PatientSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.bo.PatientSelectDetailBO;
import cn.tedu.medicalappointmentsystemk.pojo.param.PatientUpdateParam;
import cn.tedu.medicalappointmentsystemk.pojo.po.PageData;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PatientService {

    PatientSelectDetailBO patientDetail(Long id);

    PageData<PatientSelectBO> patientSelect(Integer pageNum);

    @Transactional
    void patientDelete(Long id);

    void patientUpdate(PatientUpdateParam param);

    PageData<PatientSelectBO> searchLastWeek(Integer pageNum);

    PageData<PatientSelectBO> searchLastMonth(Integer pageNum);

    PageData<PatientSelectBO> searchToday(Integer pageNum);

    List<PatientSelectBO> patientSelect(String nickname);
}
